package com.pumpkin.jschsftpdemo.controller;

import com.pumpkin.jschsftpdemo.util.FTPUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/shell")
public class ShellExecController {

    @RequestMapping("/test01")
    public void shellExec() throws Exception {
        StringBuffer stringBuffer = FTPUtil.execShellCommand();
        System.out.println(stringBuffer);
    }
}
